package com.example.codegen;

public class Identifier implements AstNode {
    // update: constant may be the left value
    public static final String IDENTIFIER_PATTERN = "[a-zA-Z0-9\\_\\$]+";
    public String name;

    public Identifier(String name) {
        this.name = name;
    }

    public String toJava() {
        return name;
    }

    public String toGo() {
        return name.toUpperCase();
    }

    @Override
    public String toJs() {
        return name;
    }

    @Override
    public String toCSharp() {
        return name;
    }

    public String toCJ() {
        return name;
    }
}
